#include"buyer.h"
#include"stock.h"
#include<memory>
using namespace std;
int main()
{
    shared_ptr<Stock> byd = make_shared<Stock>("比亚迪");
    shared_ptr<Buyer> xcg = make_shared<Buyer>(byd, "邢成功");
    shared_ptr<Buyer> yr = make_shared<Buyer>(byd, "袁蕊");
    shared_ptr<Buyer> jx = make_shared<Buyer>(byd, "荆心");
    byd->attach(xcg);
    byd->attach(yr);
    byd->attach(jx);
    byd->run();
}